From: Giovanni Campagna Date: Thu, 3 Oct 2013 12:26:21 +0000 (+0200) Subject: NetworkMenu/NMConnectionDevice: fix status text X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3263 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c79bdd9029c5b01c06fa3e3430fc8ad3bfdf73aa;p=gnome-shell.git NetworkMenu/NMConnectionDevice: fix status text Be consistent with v4 mockups https://bugzilla.gnome.org/show_bug.cgi?id=709043 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 78e44f395..c81e94c01 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -367,8 +367,9 @@ const NMConnectionDevice = new Lang.Class({ switch(this._device.state) { case NetworkManager.DeviceState.DISCONNECTED: + return _("Off"); case NetworkManager.DeviceState.ACTIVATED: - return ''; + return this.parent(); case NetworkManager.DeviceState.UNMANAGED: /* Translators: this is for network devices that are physically present but are not under NetworkManager's control (and thus cannot be used in the menu) */